#ifndef _CPU_USE_H_
#define _CPU_USE_H_

struct cpu_usage_data {
  Objects_Id          id;
  char                name[13];
  int                 time_is_ticks;
  Thread_CPU_usage_t  cpu_time_used;
  uint32_t            seconds;
  uint32_t            nanoseconds;
  uint32_t            ival;
  uint32_t            fval;
};

struct cpu_total_usage_data {
  int                 time_is_ticks;
  uint32_t            seconds;
  uint32_t            nanoseconds;
  uint32_t            ticks;
  uint32_t            total_units;
};

int rtems_cpu_usage_report_data(
  struct cpu_usage_data *data,
  unsigned int data_num,
  struct cpu_total_usage_data *tdata,
  int is_reset_stat
);

#endif /* _CPU_USE_H_ */
